package com.hxq.wap.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.transaction.annotation.Transactional;

import com.hxq.wap.entity.UserEntity;

public interface UserService {
	public UserEntity login(String userName,String password);
	public void save(UserEntity userEntity);
	public List<UserEntity> findSearch(UserEntity userEntity);
	public Long countByUserName(String userName);
	public void updatePassword(String userName,String password);
	public int deleteByEgId(int id);
	public List<UserEntity> findAll(Sort sort);
	public Page<UserEntity> findAll(Pageable pageable);
	public List<UserEntity> findAll(Specification<UserEntity> specification);
}
